package service.student.impl;

import dao.student.StudentDao;
import dao.student.impl.StudentDaoImpl;
import service.student.StudentService;

import java.util.Date;

public class StudentServiceImpl implements StudentService {

    private String xm;
    private String zym;
    private String jszh;
    private Date sDate;

    private StudentDaoImpl studentDao;

    public void setStudentDao(StudentDaoImpl studentDao) {
        this.studentDao = studentDao;
    }

    public StudentServiceImpl(String xm, String zym, String jszh, Date sDate){
        this.jszh=jszh;
        this.sDate=sDate;
        this.xm=xm;
        this.zym=zym;
    }
    @Override
    public void addStudent() {
        System.out.println("this is service: save Student! xm="+xm+" zym="+zym+" jszh="+jszh+" sava date="+sDate);
        studentDao.addStudent();
    }

    @Override
    public void queryStudent() {
        System.out.println("this is service: query Student!");
    }

    @Override
    public void updateStudent() {

    }

    @Override
    public void deleteStudent() {

    }
}
